package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.dao.impl.BookDaoImpl;
import com.itheima.service.BookService;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class BookServiceImpl implements BookService, InitializingBean, DisposableBean {

    public void destroy() throws Exception {
        System.out.println("s destroy");
    }


    public void afterPropertiesSet() throws Exception {
        System.out.println("s init");
    }

    private BookDao bookDao;
    public void save(){
        System.out.println("book service save...");
        bookDao.save();
    }

    public void setBookDao( BookDaoImpl bookDao ) {
        System.out.println("set....");
    }
}
